home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / BORLAND TURBO / RTLWIN32.PAK / MCX.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  3.9 KB  |  105 lines

  1. /************************************************************************
  2. *                                                                       *
  3. *   mcx.h -- This module defines the 32-Bit Windows MCX APIs            *
  4. *                                                                       *
  5. *   Copyright (c) 1990-1996, Microsoft Corp. All rights reserved.       *
  6. *                                                                       *
  7. ************************************************************************/
  8.  
  9. #ifndef _MCX_H_
  10. #define _MCX_H_
  11. #pragma option -b
  12.  
  13. typedef struct _MODEMDEVCAPS {
  14.     DWORD   dwActualSize;
  15.     DWORD   dwRequiredSize;
  16.     DWORD   dwDevSpecificOffset;
  17.     DWORD   dwDevSpecificSize;
  18.  
  19.     // product and version identification
  20.     DWORD   dwModemProviderVersion;
  21.     DWORD   dwModemManufacturerOffset;
  22.     DWORD   dwModemManufacturerSize;
  23.     DWORD   dwModemModelOffset;
  24.     DWORD   dwModemModelSize;
  25.     DWORD   dwModemVersionOffset;
  26.     DWORD   dwModemVersionSize;
  27.  
  28.     // local option capabilities
  29.     DWORD   dwDialOptions;          // bitmap of supported values
  30.     DWORD   dwCallSetupFailTimer;   // maximum in seconds
  31.     DWORD   dwInactivityTimeout;    // maximum in seconds
  32.     DWORD   dwSpeakerVolume;        // bitmap of supported values
  33.     DWORD   dwSpeakerMode;          // bitmap of supported values
  34.     DWORD   dwModemOptions;         // bitmap of supported values
  35.     DWORD   dwMaxDTERate;           // maximum value in bit/s
  36.     DWORD   dwMaxDCERate;           // maximum value in bit/s
  37.  
  38.     // Variable portion for proprietary expansion
  39.     BYTE    abVariablePortion [1];
  40. } MODEMDEVCAPS, *PMODEMDEVCAPS, *LPMODEMDEVCAPS;
  41.  
  42. typedef struct _MODEMSETTINGS {
  43.     DWORD   dwActualSize;
  44.     DWORD   dwRequiredSize;
  45.     DWORD   dwDevSpecificOffset;
  46.     DWORD   dwDevSpecificSize;
  47.  
  48.     // static local options (read/write)
  49.     DWORD   dwCallSetupFailTimer;       // seconds
  50.     DWORD   dwInactivityTimeout;        // seconds
  51.     DWORD   dwSpeakerVolume;            // level
  52.     DWORD   dwSpeakerMode;              // mode
  53.     DWORD   dwPreferredModemOptions;    // bitmap
  54.  
  55.     // negotiated options (read only) for current or last call
  56.     DWORD   dwNegotiatedModemOptions;   // bitmap
  57.     DWORD   dwNegotiatedDCERate;        // bit/s
  58.  
  59.     // Variable portion for proprietary expansion
  60.     BYTE    abVariablePortion [1];
  61. } MODEMSETTINGS, *PMODEMSETTINGS, *LPMODEMSETTINGS;
  62.  
  63. // Dial Options
  64. #define DIALOPTION_BILLING  0x00000040  // Supports wait for bong "$"
  65. #define DIALOPTION_QUIET    0x00000080  // Supports wait for quiet "@"
  66. #define DIALOPTION_DIALTONE 0x00000100  // Supports wait for dial tone "W"
  67.  
  68. // SpeakerVolume for MODEMDEVCAPS
  69. #define MDMVOLFLAG_LOW      0x00000001
  70. #define MDMVOLFLAG_MEDIUM   0x00000002
  71. #define MDMVOLFLAG_HIGH     0x00000004
  72.  
  73. // SpeakerVolume for MODEMSETTINGS
  74. #define MDMVOL_LOW          0x00000000
  75. #define MDMVOL_MEDIUM       0x00000001
  76. #define MDMVOL_HIGH         0x00000002
  77.  
  78. // SpeakerMode for MODEMDEVCAPS
  79. #define MDMSPKRFLAG_OFF         0x00000001
  80. #define MDMSPKRFLAG_DIAL        0x00000002
  81. #define MDMSPKRFLAG_ON          0x00000004
  82. #define MDMSPKRFLAG_CALLSETUP   0x00000008
  83.  
  84. // SpeakerMode for MODEMSETTINGS
  85. #define MDMSPKR_OFF         0x00000000
  86. #define MDMSPKR_DIAL        0x00000001
  87. #define MDMSPKR_ON          0x00000002
  88. #define MDMSPKR_CALLSETUP   0x00000003
  89.  
  90. // Modem Options
  91. #define MDM_COMPRESSION      0x00000001
  92. #define MDM_ERROR_CONTROL    0x00000002
  93. #define MDM_FORCED_EC        0x00000004
  94. #define MDM_CELLULAR         0x00000008
  95. #define MDM_FLOWCONTROL_HARD 0x00000010
  96. #define MDM_FLOWCONTROL_SOFT 0x00000020
  97. #define MDM_CCITT_OVERRIDE   0x00000040
  98. #define MDM_SPEED_ADJUST     0x00000080
  99. #define MDM_TONE_DIAL        0x00000100
  100. #define MDM_BLIND_DIAL       0x00000200
  101. #define MDM_V23_OVERRIDE     0x00000400
  102.  
  103. #pragma option -b.
  104. #endif /* _MCX_H_ */
  105.